import request from '@/utils/request'

/**
 *  添加购物车
 * @param data
 * @return {*}
 */
export const addCartApi = (data) => {
   return request({
     url: '/product/shop/',
     method: 'POST',
     data
   })
 }
/**
 * 删除购物车(建议post)
 * @param uid
 * @param proId
 * @param data
 */
export const delCartApi = (uid, proId, data) => {
  return request({
    url: `/product/shop/delete/${uid}/${proId}`,
    method: 'PUT',
    data
  })
}